/*
========================================================================
 Name        : EasyPlayerContainerView.h
 Author      : Yupeng Song
 Copyright   : This is GUI hello world for Easy Symbian
 Description : 
========================================================================
*/
#ifndef EASYPLAYERCONTAINERVIEW_H
#define EASYPLAYERCONTAINERVIEW_H

#include <aknview.h>

class CEasyPlayerPlaybackContainer;
class CEasyPlayerVideoPlayer;

/**
 * Avkon view class for EasyPlayerContainerView. It is register with the view server
 * by the AppUi. It owns the container control.
 * @class	CEasyPlayerPlaybackView EasyPlayerContainerView.h
 */						
			
class CEasyPlayerPlaybackView : public CAknView
	{

public:
	// constructors and destructor
	CEasyPlayerPlaybackView();
	static CEasyPlayerPlaybackView* NewL();
	static CEasyPlayerPlaybackView* NewLC();        
	void ConstructL();
	virtual ~CEasyPlayerPlaybackView();
						
	// from base class CAknView
	TUid Id() const;
	void HandleCommandL( TInt aCommand );
	
	CEasyPlayerPlaybackContainer* CreateContainerL();

protected:
	// from base class CAknView
	void DoActivateL(
		const TVwsViewId& aPrevViewId,
		TUid aCustomMessageId,
		const TDesC8& aCustomMessage );
	void DoDeactivate();
	void HandleStatusPaneSizeChange();

private:
	void SetupStatusPaneL();
	void CleanupStatusPane();
	
	CEasyPlayerPlaybackContainer* iPlaybackContainer;
	CEasyPlayerVideoPlayer* iVideoPlayer;

	};

#endif // EASYPLAYERCONTAINERVIEW_H
